<template>
	<view v-if="isVerify" class="not-open">
		该功能暂未开通
	</view>
	<view v-else class="main-box">
		<view>
			<image id="form-box" mode="widthFix" class="bg-image" src="https://web.78keji.cn/images/pzb/tops.png"></image>
			<view class="index-all-content-box">
				<view class="mobile-roll-left-box">
					<souhu-up></souhu-up>
				</view>
				<view class="main-form-box">
					<!-- <xmly-submit-form :mobile="formData.mobile" :param="formData.param" :submit="formData.submit"
					:btnImg="imagePath + 'submit-btn.png'"></xmly-submit-form> -->

					<pzbs-mobile :mobile="formData.mobile" :param="formData.param" :submit="formData.submit"
						baseImagePath="https://web.78keji.cn/images/pzb/quanyi.png" :btnImg="imagePath + 'submit-btn.png'"></pzbs-mobile>
						
				</view>
				<view class="tip-text" style="margin-top: 20rpx;">
					业务资费：首周免费，续订19.9元/月（随时取消）
				</view>
				<view class="tip-text">
					续订权益：包含1张品质生活会员月卡，热门视频会员月卡多选1
				</view>
				<view class="tip-text submit-btn">
					客服热线：400-8825-010
				</view>
			</view>
			
		</view>


	</view>
</template>

<script>
	import httpUtil from "@/utils/httpUtil";
	import commonApi from "@/api/commonApi";
	import userApi from "@/api/userApi";
	import logApi from "../../api/logApi";
	import paramApi from "../../api/paramApi";

	export default {
		data() {
			return {
				isVerify: false,
				scrollTop: 0,
				imagePath: 'https://h5.sx2b2c.com/images/pingzhi_shenghuo_dahuiyuan/zhifubao_mini/banpin/',
				scrollToTargetId: "form-box",
				formData: {
					mobile: '',
					param: '',
					submit: 0,
					intervalId: '',
				}
			}
		},
		onLoad(option) {
			this.initData(option)
			my.hideBackHome()
		},
		onPageScroll(e) {
			this.scrollTop = e.scrollTop
		},
		methods: {
			initData(option) {
				// option.a = '123aaa'
				// option.param = "4"

				logApi.addLog('pzb_tcq option:' + JSON.stringify(option))
				paramApi.initData(option)

				this.initParam(option)
				commonApi.is404()

				if (!userApi.getUserId()) {
					userApi.initUserId()
				}
				if (option.submit) {
					this.formData.submit = option.submit
				}

				commonApi.isVerify(res => {
					this.isVerify = res
				})

				commonApi.buriedPoint(56)
				commonApi.newBuriedPoint('ZY1504')
			},
			initParam(option) {
				if (option.a) {
					httpUtil.setA(option.a)
				}
				if (option.param) {
					userApi.setParam(option.param)
				}
			}
		}
	}
</script>

<style lang="scss">
	.not-open {
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #000;
	}

	.main-box {
		background-color: #5BA3F1;
		min-height: 100vh;
		
	}

	.main-form-box {
		width: 696rpx;
		// position: absolute;
		// left: 5%;
		// bottom: 10vh;
		margin: 40rpx auto 0;
	padding: 30rpx;
	min-height: 44rpx;
		background: linear-gradient(0deg, #D1EEFE, #FFFFFF);
		box-shadow: 0rpx 5rpx 11rpx 0rpx rgba(28,124,255,0.72);
		border-radius: 80rpx;
		border: 2px solid #FFFFFF;
	}

	.bg-image {
		width: 100%;
		height: auto;
	}

	.index-all-content-box {
		position: absolute;
		left: 0;
		top: 125vw;
		width: 100%;
			background-color: #5BA3F1;
	}

	.mobile-roll-left-box {
		
		width: 90%;
		margin: 0 auto;
		position: relative;
	
	}
	.tip-text{
		font-size: 18rpx;
		color: #FFFFFF;
		line-height: 32rpx;
		width: 100%;
		text-align: center;
		background-color: #5BA3F1;
	}
</style>